#!/bin/sh

if [ -f $1 ]; then
  cat $1 | while read DUMMY OID DESCR CAT DNS VEND REST
  do
    mkdir $OID
    echo "$DESCR" > $OID/shortDescription
    echo "$CAT" > $OID/category
    echo "$DNS" > $OID/dnsPrefix
    echo "$VEND" > $OID/vendor
  done
fi
